#ifndef PAGELIBPREPROCESSOR_H
#define PAGELIBPREPROCESSOR_H

#include "PageLib.h"
#include "WebPage.h"

class PageLibPreprocessor
{
public:
    PageLibPreprocessor(PageLib& pageLib)
    : _pageLib(pageLib)
    {
        _pages = _pageLib.getPages();
    }

    void StoW() {
        for (const string &elem : _pages) {
            WebPage tmp(elem);
            _WebPage.push_back(tmp);
        }
    }

public:
    PageLib& _pageLib;
    vector<string> _pages;
    vector<WebPage> _WebPage;
};

#endif
